
import play.jobs.*;
import play.*;
import play.test.*;

import models.*;


@OnApplicationStart
public class Bootstrap extends Job {
	public void doJob() {
		if (Address.count() == 0) {
			// Resets database!
			Fixtures.deleteDatabase();
			Fixtures.loadModels("initial-data.yml");
		}
	}
}
